package minov.parser;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * Argument for parsing boolean values. Based on @link EnumArgument
 * 
 */
public class BooleanArgument extends EnumArgument {

   /**
    * Constructs argument that parses boolean values.<br>
    * Example:
    * 
    * <pre>
    * booleanArgument = new BooleanArgument(&quot;u&quot;, &quot;usesomething&quot;, null)
    * </pre>
    * 
    * @param [in] shortName
    *           argument shortcut
    * @param [in] fullName
    *           full name of argument
    * @param [in] defaultValues
    *           List of the default values.
    */
   public BooleanArgument(String shortName, String fullName,
         String... defaultValues) {
      super(shortName, fullName, trueFalseStringArrayList, defaultValues);
   }

   // array with "true" and "false" for EnumArgument constructor
   private static String trueFalseStringArray[] = { "true", "false" };

   private static ArrayList<String> trueFalseStringArrayList =
         new ArrayList<String>(Arrays.asList(trueFalseStringArray));

}
